<div class="u_cat">
	<div class="u_cat_head_strip"></div>
	<div class="u_cat_head">
		<a href="<?php echo Yii::app()->createUrl('event/urls', array('event'=>$event)); ?>">
			<em>Ссылки</em><span><?php echo CHtml::encode($countUrls); ?></span>
		</a>
	</div>
	<div class="u_cont_list">
		<?php if($countUrls) : ?>
			<?php foreach ($urls as $key => $url) : ?>
				<div class="u_cont">
					<a href="<?php echo $url->url; ?>" class="u_cont_pic" target="_blank">
						<?php 
							echo $this->material_image(
								$url->id, 
								$url->avatar, 
								'40', 
								'events/' . $event
							); 
						?>
					</a>
					<div class="u_cont_r">
						<?php 
							echo CHtml::link( 
								CHtml::encode($url->name),
								$url->url,
								array(
									'class' => 'u_cont_h',
									'target'=>'_blank'
								)
							);
						?>
					</div>
					
				</div>
			<?php endforeach; ?>
		<?php else : ?>
		<div class="u_cont_list">
			<div class="u_cont">
				<div class="u_cont_r_empty">
					В сообществе ещё нет ссылок.
					<?php if(isset( $checkAdmin )) : ?>
						<p><a href="<?php echo Yii::app()->createUrl('event/createUrls',array('event'=>$event));?>" class="u_cont_h2_discussion ajaxLink">
							Добавить 
						</a></p>
					<?php endif ?>
				</div>
			</div>
		</div>
		<?php endif; ?>
	</div>
</div>